package cn.shenshen.shop.fegin;

import cn.shenshen.shop.domain.Good;
import cn.shenshen.shop.hystrix.GoodFeignHystrix;
import cn.shenshen.shop.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 商品fegin远程调用接口
 */
@FeignClient(value = "good-server",fallback = GoodFeignHystrix.class)
public interface GoodFeignApi {

    @RequestMapping("/api/good/queryByIds")
    public Result<List<Good>> queryByIds(@RequestParam("ids") List<Long> ids);
}
